package com.rowline.admin.module.study.desiremode;

import com.rowline.admin.module.study.collections.Person;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * ClassName:FactoryModeTest
 * Created by 245167
 * on 2017/11/12  12:12
 * description:
 */
public class FactoryModeTest {

    public static void main(String[] args) {

        ApplicationContext context = new ClassPathXmlApplicationContext("spring/applicationContext.xml");

        Person person = (Person) context.getBean("person");
        System.out.println("person = " + person);

    }
}
